<div class="lecture" id="<%= 'c' + lecture.ccn.to_s %>">
	<h2 class="course"><%= lecture.expanded_title %></h2>
	<h3 class="course_title"><%= lecture.course.title %></h3>
	<dl class="logistics">
		<dt class="course_description">Description:</dt>
		<dd class="course_description"><%= lecture.course.description %></dd>
		<dt class="location">Location:</dt>
		<dd class="location"><%= lecture.location %></dd>
		<dt class="time">Time:</dt>
		<dd class="time"><%= lecture.time %></dd>
		<dt class="days">Days:</dt>
		<dd class="days"><%= lecture.days %></dd>
	</dl>
	<dl class="lecture_info">
		<dt class="instructor">Instructor:</dt>
		<dd class="instructor"><%= (lecture.instructors.collect { |inst| inst.name }).join('; ') %></dd>
		<dt class="ccn">Course Control Number:</dt>
		<dd class="ccn"><%= lecture.ccn %></dd>
		<dt class="units">Units:</dt>
		<dd class="units"><%= lecture.course.units %></dd>
		<dt class="final">Final Exam Group:</dt>
		<dd class="final"><%= lecture.finals_group %></dd>
	</dl>
	<div class="save_button">
	<input id="<%= 'c' + lecture.ccn.to_s + '_checkbox' %>" type="checkbox" name="saveCourse" onchange="saveLecture(<%=h lecture.ccn %>)" /><label for="<%= 'c' + lecture.ccn.to_s + '_checkbox' %>">Save this class</label>
	</div>
	<!-- need to make a css class for indented display -->
<% @discussions = lecture.discussions
    if not @discussions.empty?
		discussionId = 'l' + lecture.ccn.to_s + '_discussions' %>
	<h3 class="discussions"><a href="javascript:$('<%= discussionId %>').toggle()">Discussions</a></h3>
	<!-- Toggling here is broken in a sense that it sends a http request even when hiding the element -->
	<div id="<%= discussionId %>" class="discussions">
<%= render :partial => 'discussion', :object => @discussions %>
	</div>
<% end
   @discussions = lecture.labs
   if not @discussions.empty?
       labId = 'l' + lecture.ccn.to_s + '_labs' %>
	<h3 class="labs"><a href="javascript:$('<%= labId %>').toggle()">Labs</a></h3>
	<div id="<%= labId %>" class="labs">
<%= render :partial => 'discussion', :object => @discussions %>
    </div>
	<% end %>
</div>
